require("Key")

CastParser = class("CastParser")

---

function CastParser:initialize(cast)

	self.cast = cast
	
	self:parseBots()
end

---

function CastParser:parseBots()

	if self.cast.Bots
	then
		for botName, botDescriptor in pairs(self.cast.Bots) 
		do
			Bot:new(botName, botDescriptor.behavior)
		end
	end
end